package cj.projects;

import android.app.Activity;   
import android.graphics.Color;   
import android.os.Bundle;   
import android.view.View;   
import android.view.View.OnClickListener;   
import android.widget.Button;   
import android.widget.EditText;   
import android.widget.TextView; 

public class autoreceipt extends Activity {
	int i;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button btn = (Button)findViewById(R.id.btn_Enter);
        final TextView txt = (TextView)findViewById(R.id.tv_Output);
        i = 0;
        
        // Set Click Listener   
        btn.setOnClickListener(new OnClickListener() {   
             @Override  
             public void onClick(View v) {   
                i++;
                txt.setText("Click Number: " + i);
             }   
        });
    }
}